home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #3 / K-CD-3-2002.ISO / Antarctica 3D Map / data1.cab / Resources / models.xml < prev    next >
Encoding:
Extensible Markup Language  |  2001-06-06  |  8.9 KB  |  256 lines

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2.  
  3. <!-- Model definition xml file for ASI 3D client-->
  4.  
  5. <Config>
  6.  
  7. <data>
  8. <Metadata>
  9. <Field name="grafix" type="xsd:short" normalize="yes" />
  10. <Field name="inlinks" type="xsd:int" normalize="yes" />
  11. <Field name="page_count" type="xsd:int" normalize="yes" />
  12. <Field name="rating" type="xsd:short" normalize="yes" />
  13. <Field name="decay" type="xsd:short" normalize="no" />
  14. <Field name="speed" type="xsd:int" normalize="no" />
  15. <Field name="outlinks" type="xsd:int" normalize="yes" />
  16. </Metadata>
  17.  
  18.  
  19. <!-- Material defintions --> 
  20. <material id="just_visited material" color="#FF0000" /> 
  21. <material id="search_result material" color="#FFFFFF" opacity="0.5" emission="#CCCCCC" /> 
  22.  
  23. <!-- Range selectors for geometry based on visibility --> 
  24. <range id="site not cool" max="1" /> 
  25. <range id="site cool" max="max" /> 
  26. <range id="search result 1-4" max="4" /> 
  27. <range id="search result 5-6" max="6" /> 
  28.  
  29. <!-- Data mapping defintions --> 
  30.  
  31. <!-- visibility --> 
  32.  
  33. <DataModelMap id="visibility" data="visibility">
  34.   <UseModel use="1" rangeMax="7.5" /> 
  35.   <UseModel use="2" rangeMax="15.0" /> 
  36.   <UseModel use="3" rangeMax="22.5" /> 
  37.   <UseModel use="4" rangeMax="30.0" /> 
  38.   <UseModel use="5" rangeMax="37.5" /> 
  39.   <UseModel use="6" rangeMax="50.0" /> 
  40. </DataModelMap>
  41.  
  42. <!-- metadata --> 
  43.  
  44. <DataModelMap id="pc12" data="page_count">
  45.   <UseScale use="data * 5" axis="y" /> 
  46. </DataModelMap>
  47. <DataModelMap id="pc34" data="page_count">
  48.   <UseScale use="data * 10" axis="y" /> 
  49. </DataModelMap>
  50. <DataModelMap id="pc56" data="page_count">
  51.   <UseScale use="data * 30" axis="y" /> 
  52. </DataModelMap>
  53.  
  54. <DataModelMap id="cool" data="rating">
  55.   <UseCool use="no" rangeMax="1" /> 
  56.   <UseCool use="yes" rangeMax="100%" /> 
  57. </DataModelMap>
  58.  
  59. <!-- special data --> 
  60.  
  61. <DataModelMap id="just_visited" data="just_visited">
  62.   <UseMaterial use="just_visited material" /> 
  63. </DataModelMap>
  64.  
  65. <DataModelMap id="sr14" data="search_result">
  66.   <UseModel use="sr1-4" /> 
  67. </DataModelMap>
  68. <DataModelMap id="sr56" data="search_result">
  69.   <UseModel use="sr5-6" /> 
  70. </DataModelMap>
  71.  
  72. </data>
  73.  
  74. <models>
  75.  
  76. <!-- 01 House - Green -->
  77. <model id="1" search_result="sr14">
  78. <!-- Grass -->
  79. <modelelement id="1" geometry="house_foundation.nff" texture="hf.jpg" tilex="1" tiley="1" >
  80. <position x="0" y="0" z="0" />
  81. <size x="25" z="25" y="0.5" />
  82. <!-- grass surface -->
  83. <surface id="0" texture="hfr.jpg" tileX="1" tileY="1" />
  84. </modelelement>
  85. <!-- Main -->
  86. <modelelement id="2" geometry="house_main.nff" texture="house_main.jpg" >
  87. <!-- house door -->
  88. <position x="0" y="0" z="0" relativeTo="1" />
  89. <size x="5" y="5" z="5" />
  90. <surface id="3" texture="house_door.jpg" />
  91. </modelelement>
  92. <!-- Roof -->
  93. <modelelement id="3" geometry="house_roof.nff" texture="hr.jpg" dataModelMap="pc12 AND just_visited">
  94. <position x="0" y="0" z="0" relativeTo="2" />
  95. <size x="5" y="1" z="5" />
  96. </modelelement>
  97. </model>
  98.  
  99. <!-- 02 House - White -->
  100. <model id="2" search_result="sr14">
  101. <!-- Grass -->
  102. <modelelement id="1" geometry="house_foundation.nff" texture="hf.jpg" tilex="1" tiley="1">
  103. <position x="0" y="0" z="0" />
  104. <size x="25" z="25" y=".5" />
  105. <!-- grass surface -->
  106. <surface id="0" texture="hfrgreener.jpg" tilex="1" tiley="1" />
  107. </modelelement>
  108. <modelelement id="2" geometry="house_main.nff" texture="hm.jpg" tilex="1" tiley="1">
  109. <!-- house door -->
  110. <position x="0" y="0" z="0" relativeTo="1" />
  111. <size x="10" y="5" z="5" />
  112. <surface id="3" texture="hmd.jpg" />
  113. </modelelement>
  114. <modelelement id="3" geometry="house_roof.nff" texture="hr.jpg" dataModelMap="pc12 AND just_visited">
  115. <position x="0" y="0" z="0" relativeTo="2" />
  116. <size x="10" y="1" z="5" />
  117. </modelelement>
  118. </model>
  119.   
  120.  
  121. <!-- 03 Building - High School -->
  122. <model id="3" search_result="sr14">
  123. <!-- Foundation -->
  124. <modelelement id="1" geometry="office_foundation.nff" texture="office_donkey_roof.jpg" tilex="1" tiley="1">
  125. <position x="0" y="0" z="0" />
  126. <size x="25" y="0.5" z="25" />
  127. </modelelement>
  128. <!-- Main -->
  129. <modelelement id="2" geometry="office_main.nff" texture="office_main.jpg" tilex="2" tiley="1">
  130. <position x="0" y="0" z="0" relativeTo="1" />
  131. <size x="10" y="10" z="15" />
  132. <!-- roof surface -->
  133. <surface id="0" texture="office_main_roof.jpg" />
  134. <!-- building door -->
  135. <surface id="2" texture="office_main_door.jpg" />
  136. </modelelement>
  137. <!-- Tower -->
  138. <modelelement id="3" geometry="office_tower.nff" texture="office_tower.jpg" dataModelMap="pc34">
  139. <position x="5" y="0" z="-5" relativeTo="1" />
  140. <size x="5" y="10" z="5" />
  141. <!-- roof surface -->
  142. <surface id="10" texture="office_tower_roof.jpg" dataModelMap="just_visited" />
  143. </modelelement>
  144. </model>
  145.  
  146. <!-- 04 Building - Firehouse -->
  147. <model id="4" search_result="sr14">
  148. <!-- Foundation -->
  149. <modelelement id="1" geometry="office_foundation.nff" texture="bfr.jpg" tilex="1" tiley="1">
  150. <position x="0" y="0" z="0" />
  151. <size x="25" y="0.5" z="25" />
  152. </modelelement>
  153. <!-- Main -->
  154. <modelelement id="2" geometry="office_main.nff" texture="bm.jpg" tilex="1" tiley="1">
  155. <position x="0" y="0" z="0" relativeTo="1" />
  156. <size x="10" y="10" z="15" />
  157. <!-- roof surface -->
  158. <surface id="0" texture="bmr.jpg" />
  159. <!-- building door -->
  160. <surface id="2" texture="bmd.jpg" />
  161. </modelelement>
  162. <!-- Tower -->
  163. <modelelement id="3" geometry="office_tower.nff" texture="br.jpg" tilex=".5" tiley="1" dataModelMap="pc34">
  164. <position x="5" y="0" z="-5" relativeTo="1" base="center" relativeToBase="bottom" />
  165. <size x="5" y="10" z="5" />
  166. <!-- roof surface -->
  167. <surface id="10" texture="brr.jpg" dataModelMap="just_visited" />
  168. </modelelement>
  169. </model>
  170.  
  171. <!-- 05 Skyscraper - Wake -->
  172. <model id="5" search_result="sr56">
  173. <modelelement id="1" geometry="skyscraper_mezzanine.nff" texture="sf.jpg" tilex="1" tiley="1">
  174. <position x="0" y="0" z="0" />
  175. <size x="20" y="20" z="20" />
  176. <!-- mezzanine roof surface -->
  177. <surface id="0" texture="sfr.jpg" tilex="1" tiley="1" />
  178. <!-- mezzanine door -->
  179. <surface id="3" texture="sfd.jpg" tileX="1" tileY="1" />
  180. </modelelement>
  181. <modelelement id="2" geometry="skyscraper_main.nff" texture="sm.jpg" tilex="1" tiley="8" dataModelMap="pc56">
  182. <position x="0" y="0" z="0" relativeTo="1" />
  183. <size x="17" y="30" z="17" />
  184. <!-- main floors roof -->
  185. <surface id="0" texture="smr.jpg" tilex="1" tileyY="1" />
  186. </modelelement>
  187. <!-- elevator shaft -->
  188. <modelelement id="3" geometry="skyscraper_elev.nff" texture="srr.jpg" dataModelMap="just_visited">
  189. <position x="0" y="0" z="0" relativeTo="2" />
  190. <size x="5" y="10" z="5" />
  191. <surface id="0" texture="srr.jpg" tileX="1" tileY="1" />
  192. </modelelement>
  193. </model>
  194.  
  195. <!-- 06 Skyscraper - Finnigan -->
  196. <model id="6" search_result="sr56">
  197. <!-- Mezzaninne -->
  198. <modelelement id="1" geometry="skyscraper_mezzanine.nff" texture="cool_skyscraper_mezzanine.jpg" tilex="2" tiley="2">
  199. <position x="0" y="0" z="0" />
  200. <size x="20" y="20" z="20" />
  201. <!-- mezzanine roof surface -->
  202. <surface id="0" texture="coolskyscrapermezzr.jpg" tilex="1" tiley="1" />
  203. <!-- mezzanine door -->
  204. <surface id="3" texture="cool_skyscraper_mezzd.jpg" tilex="1" tiley="1" />
  205. </modelelement>
  206. <!-- Main -->
  207. <modelelement id="2" geometry="skyscraper_main.nff" texture="cool_skyscraper_main.jpg" tilex="2" tiley="10" dataModelMap="pc56">
  208. <position x="0" y="0" z="0" relativeTo="1" />
  209. <size x="17" y="30" z="8.5" />
  210. <!-- main floors roof -->
  211. <surface id="0" texture="cool_skyscraper_main_roof.jpg" tilex="1" tiley="1" />
  212. </modelelement>
  213. <modelelement id="3" geometry="skyscraper_main.nff" texture="cool_skyscraper_main.jpg" tilex="2" tiley="10" dataModelMap="pc56">
  214. <position x="0" y="0" z="0" relativeTo="1" />
  215. <size x="8.5" y="30" z="17" />
  216. <!-- main floors roof -->
  217. <surface id="0" texture="cool_skyscraper_main_roof.jpg" tilex="1" tiley="1" />
  218. </modelelement>
  219. <!-- elevator shaft -->
  220. <modelelement id="4" geometry="skyscraper_elev.nff" texture="cool_skyscraper_ac.jpg" dataModelMap="just_visited">
  221. <position x="0" y="0" z="0" relativeTo="2" />
  222. <size x="5" y="10" z="5" />
  223. </modelelement>
  224. </model>
  225.  
  226. <!-- Search Result 1-4 -->
  227. <model id="sr1-4" type="search_result">
  228. <!-- light beam -->
  229. <modelelement id="lightBeam" geometry="lightbeam.nff" material="search_result material">
  230. <position x="0" y="0" z="0" />
  231. <size x="12.5" y="30" z="12.5" />
  232. </modelelement>
  233. <!-- ufo -->
  234. <modelelement id="ufo" geometry="ufo.nff" texture="ufo.tga" billboard="yes">
  235. <position x="0" y="0" z="0" relativeTo="lightBeam" />
  236. <size x="30" y="15" z="0" />
  237. </modelelement>
  238. </model>
  239.  
  240. <!-- Search Result 5-6 -->
  241. <model id="sr5-6" type="search_result">
  242. <!-- light beam -->
  243. <modelelement id="lightBeam" geometry="lightbeam.nff" material="search_result material">
  244. <position x="0" y="0" z="0" relativeTo="2" />
  245. <size x="7.5" y="30" z="7.5" />
  246. </modelelement>
  247. <!-- ufo -->
  248. <modelelement id="ufo" geometry="ufo.nff" texture="ufo.tga" billboard="yes">
  249. <position x="0" y="0" z="0" relativeTo="lightBeam" />
  250. <size x="30" y="15" z="0" />
  251. </modelelement>
  252. </model>
  253.  
  254. </models>
  255.  
  256. </Config>